package com.kuaiprint.main;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.RelativeLayout;
import android.widget.TextView;

public class UserMessageActivity extends Activity{

	private RelativeLayout userAccent;
	private RelativeLayout userMoblie;
	private RelativeLayout userYouxiang;

	
	private TextView rightTitle;
	private boolean type = false;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);

		setContentView(R.layout.user_message);
		rightTitle = (TextView) findViewById(R.id.right_title);
		rightTitle.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				if(!type)
				{
					rightTitle.setText("编辑");
				}
				else
					rightTitle.setText("提交");
				type = !type;
			}
		});
		
		userAccent = (RelativeLayout) findViewById(R.id.user_accent_layout);
		userMoblie = (RelativeLayout) findViewById(R.id.user_mobil_layout);
		userYouxiang = (RelativeLayout) findViewById(R.id.user_youxiang_layout);
	
		
	}
	
	public void back(View view)
	
	{
		finish();
	}
}
